import request from '@/utils/request'

// 查询关联信息
export function getBrandCategoryRelation(id) {
  return request({
    url: '/product/relation/brandCategoryRelation/list/' + id,
    method: 'get'
  })
}

// 查询当前分类下的所有品牌
export function listBrands(id) {
  return request({
    url: '/product/relation/brandCategoryRelation/brands/list/' + '?catId=' + id,
    method: 'get'
  })
}

// 新增品牌
export function addBrandCategoryRelation(data) {
  return request({
    url: '/product/relation/brandCategoryRelation/save',
    method: 'post',
    data: data
  })
}

// 删除属性分组
export function delBrandCategoryRelation(id) {
  return request({
    url: '/product/relation/brandCategoryRelation/delete/' + id,
    method: 'delete'
  })
}
